FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER Lion Li

RUN mkdir -p /haowu/seata-server/logs \
    /haowu/skywalking/agent

WORKDIR /haowu/seata-server

ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

EXPOSE 7091
EXPOSE 8091

ADD ./target/haowu-seata-server.jar ./app.jar

ENTRYPOINT ["java", \
            "-Djava.security.egd=file:/dev/./urandom", \
#            "-Dskywalking.agent.service_name=haowu-seata-server", \
#            "-Dskywalking.plugin.seata.server=true", \
#            "-javaagent:/haowu/skywalking/agent/skywalking-agent.jar", \
            "-jar", "app.jar"]
